import '@ant-design/v5-patch-for-react-19';
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import { RouterProvider } from "react-router-dom";
import routers from "@/routers";
import store , { persistor} from "./store";
import { Provider } from "react-redux";
import { PersistGate } from 'redux-persist/integration/react';
import "@/styles/global.css"

createRoot(document.getElementById("root")).render(
  <StrictMode>
      <Provider store={store}>
        <PersistGate loading={null} persistor={persistor}>
        <RouterProvider router={routers} />
        </PersistGate>
      </Provider>
  </StrictMode>
);
